<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex IntelligentSales_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub IntelligentSales_fd0_0'>
          <view class='flex flex-wrap align-center IntelligentSales_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  IntelligentSales_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='IntelligentSales_fd0_0_c1_c0'>智能卖粮</text>
          </view>
          <view class='flex flex-wrap align-center justify-end IntelligentSales_fd0_0_c0'>
            <image class='IntelligentSales_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout IntelligentSales_flex_1">
        <view class='flex flex-wrap align-start IntelligentSales_fd1_0'>
          <image class='IntelligentSales_fd1_0_c0' mode="aspectFit" :src='STATIC_URL+"53.png"'></image>
          <text class='IntelligentSales_fd1_0_c1'>惠找粮平台为您智能推荐以下出售信息和客户一个电话生意无限大</text>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout IntelligentSales_flex_2">
        <view class='flex flex-direction flex-wrap align-stretch IntelligentSales_fd2_0' @tap.stop="handleJumpDiy"
          v-for="(item,index) in dataList" :key="index" data-type="navigateTo"
          :data-url="`/pages/shouye/saleDetails/saleDetails?aid=${item.aid}`">
          <view class='flex flex-wrap align-center'>
            <!-- <image class='IntelligentSales_fd2_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"52.png"'></image> -->
            <text class='IntelligentSales_fd2_0_c0_c1'>{{item.fenlei_name}}</text>
            <view class="margin-lr-sm text-weight-600 buycate_mingcheng">{{item.buycate_mingcheng}}</view>
            <text class='IntelligentSales_fd2_0_c0_c1'>{{item.shuliang}}吨</text>
            <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c0_c4'>
              <text
                class='IntelligentSales_fd2_0_c0_c4_c0'>{{item.zhuangchejiage=='-1' ?'电话沟通' : item.zhuangchejiage}}</text>
              <text class='IntelligentSales_fd2_0_c0_c4_c1' v-if="item.zhuangchejiage!='-1'">元/斤</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c1'>
            <image class='IntelligentSales_fd2_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"4.png"'></image>
            <view class='flex flex-direction flex-wrap align-start'>
              <view class='flex flex-wrap align-center'>
                <text class='IntelligentSales_fd2_0_c1_c1_c0_c0'>地区</text>
                <text class='IntelligentSales_fd2_0_c1_c1_c0_c1'>{{item.suozaidi}}</text>
              </view>
              <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c1'>
                <view class='flex flex-wrap align-center'>
                  <text class='IntelligentSales_fd2_0_c1_c1_c0_c0'>水分</text>
                  <text class='IntelligentSales_fd2_0_c1_c1_c1_c0_c1'>{{item.buyshuifen_id_name}}</text>
                </view>
                <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c1_c1_c1_c1'>
                  <text class='IntelligentSales_fd2_0_c1_c1_c0_c0'>容重</text>
                  <text class='IntelligentSales_fd2_0_c1_c1_c1_c0_c1'>{{item.buyrongliang_id_name}}</text>
                </view>
              </view>
              <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c1'>
                <view class='flex flex-wrap align-center'>
                  <text class='IntelligentSales_fd2_0_c1_c1_c0_c0'>净毛</text>
                  <text class='IntelligentSales_fd2_0_c1_c1_c1_c0_c1'>{{item.buyzazhi_id_name}}</text>
                </view>
                <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c1_c1_c1_c1'>
                  <text class='IntelligentSales_fd2_0_c1_c1_c0_c0'>年份</text>
                  <text class='IntelligentSales_fd2_0_c1_c1_c1_c0_c1'>{{item.nianfen}}</text>
                </view>
              </view>
              <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c1'>
                <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c1_c1_c3_c0' v-if="item.certified==2">
                  <image class='IntelligentSales_fd2_0_c1_c1_c3_c0_c0' mode="aspectFit" :src='STATIC_URL+"5.png"'>
                  </image>
                  <text class='IntelligentSales_fd2_0_c1_c1_c3_c0_c1'>已实名</text>
                </view>
                <view class='flex flex-wrap align-center' v-if="item.is_vip">
                  <image class='IntelligentSales_fd2_0_c1_c1_c3_c0_c0' mode="aspectFit" :src='STATIC_URL+"6.png"'>
                  </image>
                  <text class='IntelligentSales_fd2_0_c1_c1_c3_c0_c1'>VIP会员</text>
                </view>
              </view>
            </view>
          </view>
          <view class='flex flex-wrap align-start IntelligentSales_fd2_0_c2' v-if="item.beizhu">
            <text class='IntelligentSales_fd2_0_c2_c0'>备注</text>
            <view class='flex flex-wrap align-center flex-sub IntelligentSales_fd2_0_c2_c1'>
              <text class='IntelligentSales_fd2_0_c2_c1_c0'>{{item.beizhu}}</text>
            </view>
          </view>
          <view class='flex  align-start IntelligentSales_fd2_0_c1'>
            <view class='flex  align-start' @tap.stop="stationFunc()">
              <image class='IntelligentSales_fd2_0_c3_c0_c0' mode="aspectFill" :src='item.user_avatar'></image>
              <view class='flex flex-direction flex-wrap align-start'>
                <text class='IntelligentSales_fd2_0_c3_c0_c1_c0'>{{item.user_nickname}}</text>
                <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c3_c0_c1_c1'>
                  <text class='IntelligentSales_fd2_0_c3_c0_c1_c1_c0'>发布日期：</text>
                  <text class='IntelligentSales_fd2_0_c3_c0_c1_c1_c0'>{{item.create_time}}</text>
                </view>
              </view>
            </view>
            <view class='flex flex-wrap align-center justify-center IntelligentSales_fd2_0_c3_c1'>
              <view class='flex flex-wrap align-center IntelligentSales_fd2_0_c3_c1_c0'>
                <text class='IntelligentSales_fd2_0_c3_c1_c0_c0'>限时免费</text>
              </view>
              <text class='IntelligentSales_fd2_0_c3_c1_c1'>免费联系</text>
            </view>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <benben-popup v-model="popupShow1706624995872" :mask="true" :mask-close-able="false" mode='center' :z-index='999'>
        <!---flex布局flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout IntelligentSales_flex_3">
          <view class='flex flex-direction flex-wrap align-stretch IntelligentSales_fd3_0'>
            <view class='flex flex-wrap align-center justify-between IntelligentSales_fd3_0_c0'>
              <view class='flex flex-wrap align-center IntelligentSales_fd3_0_c0_c0'>
              </view>
              <text class='IntelligentSales_fd3_0_c0_c1'>温馨提示</text>
              <image class='IntelligentSales_fd3_0_c0_c2' mode="aspectFit" :src='STATIC_URL+"138.png"'
                @tap.stop="popupShow1706624995872=false"></image>
            </view>
            <view class='flex flex-wrap align-center justify-center IntelligentSales_fd3_0_c1'>
              <text class='IntelligentSales_fd3_0_c1_c0'>该用户还没有入驻粮站,
                这里有甲方一句话</text>
            </view>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "popupShow1706624995872": false,
        "is_Settle": "",
        "popupShow1706624688274": false,
        "is_Settle": "1",
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        dataList: []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getList()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getList() {
        this.minixPagingListsApi = global.apiUrls.post656ef1f758933;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          fenlei: '1'
        }
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();
        console.log(this.dataList)
      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      },
      //是否入住粮站
      stationFunc() {
        if (this.is_Settle == '1') {
          this.$urouter.navigateTo(`/pages/shouye/otherInformation/otherInformation?aid=1`);
        } else {
          this.popupShow1706624995872 = true;
        }
      }
    }
  };
</script>
<style lang="scss" scoped>
  .buycate_mingcheng {
    color: #ec161a;
    font-size: 40rpx;
    // transform: skewX(-20deg);
    /* -20deg为负值表示向左倾斜 */
  }

  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #EEEEEE;
    background-size: 100% auto;
  }

  .IntelligentSales_flex_0 {
    background: rgba(255, 255, 255, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto;
  }

  .IntelligentSales_fd0_0_c2_c0 {
    width: 119rpx;
    height: 55rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .IntelligentSales_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .IntelligentSales_fd0_0_c0 {
    width: 120rpx;
  }

  .IntelligentSales_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .IntelligentSales_flex_1 {
    padding: 24rpx 30rpx 0rpx 30rpx;
  }

  .IntelligentSales_fd1_0_c1 {
    color: #E5592B;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 36rpx;
    width: 578rpx;
  }

  .IntelligentSales_fd1_0_c0 {
    width: 40rpx;
    height: 40rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 18rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd1_0 {
    background: rgba(251, 241, 235, 1);
    padding: 20rpx 30rpx 20rpx 16rpx;
    border-radius: 10rpx;
    background-size: 100% auto;
  }

  .IntelligentSales_flex_2 {
    padding: 24rpx 30rpx 0rpx 30rpx;
  }

  .IntelligentSales_fd2_0_c3_c1_c1 {
    color: rgba(255, 255, 255, 1);
    font-size: 32rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c3_c1_c0_c0 {
    color: #FFFFFF;
    font-size: 20rpx;
    font-weight: 700;
    line-height: 20rpx;
  }

  .IntelligentSales_fd2_0_c3_c1_c0 {
    background: url(image-path('51.png')) no-repeat;
    background-size: 100% auto;
    position: absolute;
    top: 0rpx;
    left: 0rpx;
    padding: 4rpx 12rpx 4rpx 12rpx;
  }

  .IntelligentSales_fd2_0_c3_c1 {
    background: rgba(37, 104, 174, 1);
    margin: 0rpx 0rpx 0rpx auto;
    width: 360rpx;
    height: 88rpx;
    border-radius: 24rpx;
    background-size: 100% auto;
    position: relative;
  }

  .IntelligentSales_fd2_0_c3_c0_c1_c1_c0 {
    color: #999999;
    font-size: 22rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c3_c0_c1_c1 {
    margin: 10rpx 0rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c3_c0_c1_c0 {
    color: #101010;
    font-size: 24rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c3_c0_c0 {
    width: 56rpx;
    height: 56rpx;
    border-radius: 100rpx;
    margin: 0rpx 12rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c2_c1_c0 {
    color: #BFBFBF;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c2_c1 {
    background: rgba(248, 248, 250, 1);
    margin: 0rpx 0rpx 0rpx 24rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 24rpx 24rpx 77rpx 24rpx;
  }

  .IntelligentSales_fd2_0_c2_c0 {
    color: #999999;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
    margin-top: 20rpx;
  }

  .IntelligentSales_fd2_0_c2 {
    margin: 32rpx 0rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c1_c1_c3_c0_c1 {
    color: #C86105;
    font-size: 26rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c1_c1_c3_c0_c0 {
    width: 40rpx;
    height: 40rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c1_c1_c3_c0 {
    margin: 0rpx 40rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c1_c1_c1_c1 {
    margin: 0rpx 0rpx 0rpx 38rpx;
  }

  .IntelligentSales_fd2_0_c1_c1_c1_c0_c1 {
    color: #101010;
    font-size: 30rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c1_c1_c0_c1 {
    color: #101010;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c1_c1_c0_c0 {
    color: #999999;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c1_c0 {
    width: 220rpx;
    height: 220rpx;
    border-radius: 8rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0_c0_c4_c1 {
    color: #101010;
    font-size: 30rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c0_c4_c0 {
    color: rgba(236, 22, 26, 1);
    font-size: 30rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .IntelligentSales_fd2_0_c0_c4 {
    margin: 0rpx 0rpx 0rpx auto;
  }

  .IntelligentSales_fd2_0_c0_c2 {
    width: 100rpx;
    height: 50rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 20rpx 0rpx 20rpx;
  }

  .IntelligentSales_fd2_0_c0_c1 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 700;
    line-height: 42rpx;
  }

  .IntelligentSales_fd2_0_c0_c0 {
    width: 123rpx;
    height: 44rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd2_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 32rpx 24rpx 32rpx 24rpx;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }

  .IntelligentSales_flex_3 {
    background: rgba(255, 255, 255, 1);
    width: 540rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
  }

  .IntelligentSales_fd3_0_c1_c0 {
    color: #333333;
    font-size: 30rpx;
    font-weight: 400;
    line-height: 52rpx;
  }

  .IntelligentSales_fd3_0_c1 {
    margin: 32rpx 0rpx 0rpx 0rpx;
    text-align: center;
  }

  .IntelligentSales_fd3_0_c0_c2 {
    width: 26rpx;
    height: 26rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .IntelligentSales_fd3_0_c0_c1 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .IntelligentSales_fd3_0_c0_c0 {
    width: 26rpx;
    height: 26rpx;
  }

  .IntelligentSales_fd3_0_c0 {
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .IntelligentSales_fd3_0 {
    padding: 40rpx 0rpx 40rpx 0rpx;
  }
</style>
